package org.javaboy.fmall.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.javaboy.fmall.utils.JsonSerializerUtils;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import java.io.Serializable;
import java.util.Date;

/**
 * (MeTest)实体类
 *
 * @author makejava
 * @since 2020-08-02 16:33:47
 */
public class MeTest implements Serializable {
    private static final long serialVersionUID = -61811334414922953L;
    /**
    * 测试ID
    */
//    @NotNull(message = "我就知道自己不能这么写")
    @WorkOverTime
    @Email
    @Past
    private Long id;
    /**
    * 测试BID
    */
//    @NotNull(groups = a.class)
//    @NotNull(message = "这是验证bid的")
    private Long bid;
    /**
    * 测试PBID
    */
    private Long pbid;
    /**
    * 测试NAME
    */
//    @JsonSerialize(using = JsonSerializerUtils.class)
    private String  name;
    /**
    * 测试PWS
    */
    private String pws;

    private Double a;
    @JsonSerialize(using = JsonSerializerUtils.class)
    public Double getA() {
        return a;
    }

    public void setA(Double a) {
        this.a = a;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBid() {
        return bid;
    }

    public void setBid(Long bid) {
        this.bid = bid;
    }

    public Long getPbid() {
        return pbid;
    }

    public void setPbid(Long pbid) {
        this.pbid = pbid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPws() {
        return pws;
    }

    public void setPws(String pws) {
        this.pws = pws;
    }

}